package com.jay.media.music.ui.play

import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.jay.media.music.core.db.Music

class PlayHistoryViewModel : ViewModel() {
    private var playHistoryList: MutableLiveData<List<Music>> = MutableLiveData()

    fun setPlayHistoryMusicList(musics: List<Music>) {
        playHistoryList.postValue(musics)
    }

    fun getPlayHistoryList(): LiveData<List<Music>> {
        return playHistoryList
    }
}